#include "bits/stdc++.h"
using namespace std;
int main() {
    int val[1010];
    val[1] = val[2] = val[3] = val[4] =  val[5] = 32;
    for(int i = 5;i >= 1;i --) {
        for(int j = 1;j <= 5;j ++) {
            if (j != i) {
                val[i] += val[j] / 2;
                val[j] /= 2;
            }
        }
    }
    for(int i = 1;i <= 5;i ++) {
        cout<<val[i]<<" ";
    }
    return 0;
}